package com.fhz.mvvm.ui.login.datasource;

import androidx.lifecycle.LiveData;

import com.fhz.mvvm.ServiceApi;
import com.fhz.mvvm.callback.ApiResponse;
import com.fhz.mvvm.entity.HUser;

import javax.inject.Inject;

import retrofit2.http.Body;

/**
 * 时间:2023/8/21
 *
 * @author Mr.Feng
 * 简述:
 */

public class LoginRemoteDataSource {

    @Inject
    ServiceApi mServiceApi;
    @Inject
    public LoginRemoteDataSource() {
    }

    public LiveData<ApiResponse<HUser>> register(@Body HUser hUser){
        return mServiceApi.register(hUser);
    }



}
